package com.bjesc_b2c.app.appraiset.mvp.presenter.impl;

import android.content.Context;

import com.bjesc_b2c.app.appraiset.mvp.model.CarOffShelfModel;
import com.bjesc_b2c.app.appraiset.mvp.model.impl.CarOffShelfModelImpl;
import com.bjesc_b2c.app.appraiset.mvp.presenter.CarOffShelfPresenter;
import com.bjesc_b2c.app.appraiset.mvp.view.CarOffshelfView;

import master_bean.CarOffShelfBean;
import master_bean.CarSeriesModelBean;

/**
 * Created by yidong on 2017/5/9.
 */

public class CarOffShelfPresenterImpl implements CarOffShelfPresenter,CarOffShelfModelImpl.CallBack{


    private CarOffShelfModel offShelfModel;
    private CarOffshelfView offshelfView;
    @Override
    public void pustCarOff(Context context, CarOffShelfBean bean) {
        offShelfModel.pustCarOff(context,bean);
    }

    public CarOffShelfPresenterImpl(CarOffshelfView view) {
        this.offshelfView = view;
        offShelfModel = new CarOffShelfModelImpl(this);
    }
    @Override
    public void callback(CarSeriesModelBean bean) {
        offshelfView.OffshelfBack(bean.getId());
    }
}
